import 'package:flutter/material.dart';
import 'package:my_app/app/core/theme/app_text_theme.dart';

/// custom_toast_widget.dart
///
/// Created by fuchuanwei on Thu Feb 23 2023.
///
/// Description: 自定义Toast组件
///
class CustomToastWidget extends StatelessWidget {
  final String msg;
  const CustomToastWidget({super.key, required this.msg});

  @override
  Widget build(BuildContext context) {
    return Material(
      child: Container(
        padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10),
        decoration: BoxDecoration(
          color: Color(0xFFF0F0F0),
          borderRadius: BorderRadius.circular(20),
        ),
        child: Text(
          msg,
          style: toastMsg,
        ),
      ),
    );
  }
}
